package com.jason.hadoop.group;

import com.jason.hadoop.bean.WordBean;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Partitioner;

public class WordOrderPartitioner extends Partitioner<WordBean, NullWritable> {
    @Override
    public int getPartition(WordBean wordBean, NullWritable nullWritable, int i) {
        return wordBean.hashCode() % i;
    }
}
